package com.lck.blogmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author wyq
 * @version v1.0.0
 * @explain
 * @date 2024/4/11 8:49
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("like_relation")
public class LikeEntity {

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 类型 1博客 2问答
     */
    private Integer type;

    /**
     * 关联对象id
     */
    private Integer relationId;

}
